# 导入系统模块
from ascript.android import system

def openBrowser():
    system.open('浏览器')

def openBrowserBaidu():
    system.browser('http://baidu.com')

def openAirScript():
    system.open('com.aojoy.airscript')

def home(key,value):
    if(key=='browser'):
        openBrowser()
        pass  
    elif(key=='browser-baidu'):
        openBrowserBaidu()
        pass
    elif(key=='airscript'):
        openAirScript()
        pass
    elif(key=='exit'):
        pass
    elif(key=='loger'):
        print(value)